<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>EOS.IO: eosio::fixed_point64&lt; Q &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="eos-logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">EOS.IO
   &#160;<span id="projectnumber">DAWN3.0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceeosio.html">eosio</a></li><li class="navelem"><a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="structeosio_1_1fixed__point64-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">eosio::fixed_point64&lt; Q &gt; Struct Template Reference<div class="ingroups"><a class="el" href="group__contractdev.html">Smart Contract API Reference</a> &raquo; <a class="el" href="group__mathapi.html">Math API</a> &raquo; <a class="el" href="group__mathcppapi.html">Math C++ API</a> &raquo; <a class="el" href="group__fixedpoint.html">Fixed Point</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>64 bits representation of Fixed Point class.  
 <a href="structeosio_1_1fixed__point64.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="fixedpoint_8hpp_source.html">fixedpoint.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ab9f53ce12bd0a23708ec0b67ec7848cb"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structeosio_1_1fixed__point64.html#ab9f53ce12bd0a23708ec0b67ec7848cb">fixed_point64</a> (<a class="el" href="group__types.html#ga996e72f71b11a5bb8b3b7b6936b1516d">int64_t</a> v=0)</td></tr>
<tr class="separator:ab9f53ce12bd0a23708ec0b67ec7848cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0fcb07196ce3b1ee19897d2edd1f362b"><td class="memTemplParams" colspan="2">template&lt;uint8_t QR&gt; </td></tr>
<tr class="memitem:ga0fcb07196ce3b1ee19897d2edd1f362b"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__fixedpoint.html#ga0fcb07196ce3b1ee19897d2edd1f362b">fixed_point64</a> (const <a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a>&lt; QR &gt; &amp;r)</td></tr>
<tr class="memdesc:ga0fcb07196ce3b1ee19897d2edd1f362b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Can create <a class="el" href="structeosio_1_1fixed__point64.html" title="64 bits representation of Fixed Point class. ">fixed_point64</a> instance from int64_t, <a class="el" href="structeosio_1_1fixed__point64.html" title="64 bits representation of Fixed Point class. ">fixed_point64</a>,32 instances.  <a href="group__fixedpoint.html#ga0fcb07196ce3b1ee19897d2edd1f362b">More...</a><br /></td></tr>
<tr class="separator:ga0fcb07196ce3b1ee19897d2edd1f362b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga02a221576feae394dc006a6f65ba66c2"><td class="memTemplParams" colspan="2">template&lt;uint8_t QR&gt; </td></tr>
<tr class="memitem:ga02a221576feae394dc006a6f65ba66c2"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__fixedpoint.html#ga02a221576feae394dc006a6f65ba66c2">fixed_point64</a> (const <a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a>&lt; QR &gt; &amp;r)</td></tr>
<tr class="separator:ga02a221576feae394dc006a6f65ba66c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a713dad1088c1c4a95ed446e055f0a523"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga996e72f71b11a5bb8b3b7b6936b1516d">int64_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structeosio_1_1fixed__point64.html#a713dad1088c1c4a95ed446e055f0a523">int_part</a> () const</td></tr>
<tr class="memdesc:a713dad1088c1c4a95ed446e055f0a523"><td class="mdescLeft">&#160;</td><td class="mdescRight">To get the integer part of the fixed number.  <a href="#a713dad1088c1c4a95ed446e055f0a523">More...</a><br /></td></tr>
<tr class="separator:a713dad1088c1c4a95ed446e055f0a523"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a616163b00e9c4ff8e237139bb96ad6b1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structeosio_1_1fixed__point64.html#a616163b00e9c4ff8e237139bb96ad6b1">frac_part</a> () const</td></tr>
<tr class="memdesc:a616163b00e9c4ff8e237139bb96ad6b1"><td class="mdescLeft">&#160;</td><td class="mdescRight">To get the decimal part of the fixed number.  <a href="#a616163b00e9c4ff8e237139bb96ad6b1">More...</a><br /></td></tr>
<tr class="separator:a616163b00e9c4ff8e237139bb96ad6b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a36ebd8f73c42839443039dbef6462ff4"><td class="memTemplParams" colspan="2">template&lt;uint8_t QR&gt; </td></tr>
<tr class="memitem:a36ebd8f73c42839443039dbef6462ff4"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a> &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structeosio_1_1fixed__point64.html#a36ebd8f73c42839443039dbef6462ff4">operator=</a> (const <a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a>&lt; QR &gt; &amp;r)</td></tr>
<tr class="separator:a36ebd8f73c42839443039dbef6462ff4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f8cc600e51217711153481052e0002c"><td class="memTemplParams" colspan="2">template&lt;uint8_t QR&gt; </td></tr>
<tr class="memitem:a4f8cc600e51217711153481052e0002c"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a> &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structeosio_1_1fixed__point64.html#a4f8cc600e51217711153481052e0002c">operator=</a> (const <a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a>&lt; QR &gt; &amp;r)</td></tr>
<tr class="separator:a4f8cc600e51217711153481052e0002c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91f5e8b0aad593b8f92d8ed9b8f287d0"><td class="memTemplParams" colspan="2">template&lt;uint8_t QR&gt; </td></tr>
<tr class="memitem:a91f5e8b0aad593b8f92d8ed9b8f287d0"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a>&lt;(Q &gt;QR)?Q:QR &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structeosio_1_1fixed__point64.html#a91f5e8b0aad593b8f92d8ed9b8f287d0">operator+</a> (const <a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a>&lt; QR &gt; &amp;r) const</td></tr>
<tr class="separator:a91f5e8b0aad593b8f92d8ed9b8f287d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b0a83b256f3a7c2dac7a2ba838d8397"><td class="memTemplParams" colspan="2">template&lt;uint8_t QR&gt; </td></tr>
<tr class="memitem:a9b0a83b256f3a7c2dac7a2ba838d8397"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a>&lt;(Q &gt;QR)?Q:QR &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structeosio_1_1fixed__point64.html#a9b0a83b256f3a7c2dac7a2ba838d8397">operator-</a> (const <a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a>&lt; QR &gt; &amp;r) const</td></tr>
<tr class="separator:a9b0a83b256f3a7c2dac7a2ba838d8397"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf88630db8a6e5f2f026abe4b6fc953dc"><td class="memTemplParams" colspan="2">template&lt;uint8_t QR&gt; </td></tr>
<tr class="memitem:gaf88630db8a6e5f2f026abe4b6fc953dc"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="structeosio_1_1fixed__point128.html">fixed_point128</a>&lt; Q+QR &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__fixedpoint.html#gaf88630db8a6e5f2f026abe4b6fc953dc">operator*</a> (const <a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a>&lt; QR &gt; &amp;r) const</td></tr>
<tr class="memdesc:gaf88630db8a6e5f2f026abe4b6fc953dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Multiplication operator for <a class="el" href="structeosio_1_1fixed__point64.html" title="64 bits representation of Fixed Point class. ">fixed_point64</a>. The result goes to <a class="el" href="structeosio_1_1fixed__point64.html" title="64 bits representation of Fixed Point class. ">fixed_point64</a>.  <a href="group__fixedpoint.html#gaf88630db8a6e5f2f026abe4b6fc953dc">More...</a><br /></td></tr>
<tr class="separator:gaf88630db8a6e5f2f026abe4b6fc953dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga810e2397dd4645ec575430ffd54b5d3f"><td class="memTemplParams" colspan="2">template&lt;uint8_t QR&gt; </td></tr>
<tr class="memitem:ga810e2397dd4645ec575430ffd54b5d3f"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="structeosio_1_1fixed__point128.html">fixed_point128</a>&lt; Q+64-QR &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__fixedpoint.html#ga810e2397dd4645ec575430ffd54b5d3f">operator/</a> (const <a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a>&lt; QR &gt; &amp;r) const</td></tr>
<tr class="memdesc:ga810e2397dd4645ec575430ffd54b5d3f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Division of two <a class="el" href="structeosio_1_1fixed__point64.html" title="64 bits representation of Fixed Point class. ">fixed_point64</a> result will be stored in <a class="el" href="structeosio_1_1fixed__point128.html" title="128 bits representation of Fixed Point class. ">fixed_point128</a>.  <a href="group__fixedpoint.html#ga810e2397dd4645ec575430ffd54b5d3f">More...</a><br /></td></tr>
<tr class="separator:ga810e2397dd4645ec575430ffd54b5d3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2fb0230d48ccc90795e278e1ef12df6"><td class="memTemplParams" colspan="2">template&lt;uint8_t QR&gt; </td></tr>
<tr class="memitem:ad2fb0230d48ccc90795e278e1ef12df6"><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structeosio_1_1fixed__point64.html#ad2fb0230d48ccc90795e278e1ef12df6">operator==</a> (const <a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a>&lt; QR &gt; &amp;r)</td></tr>
<tr class="separator:ad2fb0230d48ccc90795e278e1ef12df6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a63ee72acb0a3307d54283dba95dc623b"><td class="memTemplParams" colspan="2">template&lt;uint8_t QR&gt; </td></tr>
<tr class="memitem:a63ee72acb0a3307d54283dba95dc623b"><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structeosio_1_1fixed__point64.html#a63ee72acb0a3307d54283dba95dc623b">operator&gt;</a> (const <a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a>&lt; QR &gt; &amp;r)</td></tr>
<tr class="separator:a63ee72acb0a3307d54283dba95dc623b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c28bc89073dfa8c6f81ee2594a3272c"><td class="memTemplParams" colspan="2">template&lt;uint8_t QR&gt; </td></tr>
<tr class="memitem:a2c28bc89073dfa8c6f81ee2594a3272c"><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structeosio_1_1fixed__point64.html#a2c28bc89073dfa8c6f81ee2594a3272c">operator&lt;</a> (const <a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a>&lt; QR &gt; &amp;r)</td></tr>
<tr class="separator:a2c28bc89073dfa8c6f81ee2594a3272c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga949ad7f0149535736353c9283797468b"><td class="memTemplParams" colspan="2">template&lt;uint8_t QR&gt; </td></tr>
<tr class="memitem:ga949ad7f0149535736353c9283797468b"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a>&lt;(Q &gt;QR)?Q:QR &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__fixedpoint.html#ga949ad7f0149535736353c9283797468b">operator+</a> (const <a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a>&lt; QR &gt; &amp;rhs) const</td></tr>
<tr class="memdesc:ga949ad7f0149535736353c9283797468b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Addition between two <a class="el" href="structeosio_1_1fixed__point64.html" title="64 bits representation of Fixed Point class. ">fixed_point64</a> variables and the result goes to <a class="el" href="structeosio_1_1fixed__point64.html" title="64 bits representation of Fixed Point class. ">fixed_point64</a>.  <a href="group__fixedpoint.html#ga949ad7f0149535736353c9283797468b">More...</a><br /></td></tr>
<tr class="separator:ga949ad7f0149535736353c9283797468b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga49301a70e323c7b6fa7e8b4d4cd1cce2"><td class="memTemplParams" colspan="2">template&lt;uint8_t QR&gt; </td></tr>
<tr class="memitem:ga49301a70e323c7b6fa7e8b4d4cd1cce2"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a>&lt;(Q &gt;QR)?Q:QR &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__fixedpoint.html#ga49301a70e323c7b6fa7e8b4d4cd1cce2">operator-</a> (const <a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a>&lt; QR &gt; &amp;rhs) const</td></tr>
<tr class="memdesc:ga49301a70e323c7b6fa7e8b4d4cd1cce2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Subtraction between two <a class="el" href="structeosio_1_1fixed__point64.html" title="64 bits representation of Fixed Point class. ">fixed_point64</a> variables and the result goes to <a class="el" href="structeosio_1_1fixed__point64.html" title="64 bits representation of Fixed Point class. ">fixed_point64</a>.  <a href="group__fixedpoint.html#ga49301a70e323c7b6fa7e8b4d4cd1cce2">More...</a><br /></td></tr>
<tr class="separator:ga49301a70e323c7b6fa7e8b4d4cd1cce2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:adf1b4e4d25279c532d9ac3ff56d9af21"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga996e72f71b11a5bb8b3b7b6936b1516d">int64_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structeosio_1_1fixed__point64.html#adf1b4e4d25279c532d9ac3ff56d9af21">val</a></td></tr>
<tr class="separator:adf1b4e4d25279c532d9ac3ff56d9af21"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;uint8_t Q&gt;<br />
struct eosio::fixed_point64&lt; Q &gt;</h3>

<p>Example: </p><div class="fragment"><div class="line">fixed_point64&lt;6&gt; a(123232.455667233)</div><div class="line"><a class="code" href="structeosio_1_1fixed__point64.html#ab9f53ce12bd0a23708ec0b67ec7848cb">fixed_point64</a>&lt;0&gt; a(123424)</div><div class="line"><a class="code" href="structeosio_1_1fixed__point64.html#ab9f53ce12bd0a23708ec0b67ec7848cb">fixed_point64</a>&lt;18&gt; c = a*b;</div><div class="line"><a class="code" href="structeosio_1_1fixed__point64.html#ab9f53ce12bd0a23708ec0b67ec7848cb">fixed_point64</a>&lt;24&gt; d = a+b+c;</div><div class="line"><a class="code" href="structeosio_1_1fixed__point64.html#ab9f53ce12bd0a23708ec0b67ec7848cb">fixed_point64</a>&lt;24&gt; e = b/a;</div></div><!-- fragment --> </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ab9f53ce12bd0a23708ec0b67ec7848cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab9f53ce12bd0a23708ec0b67ec7848cb">&#9670;&nbsp;</a></span>fixed_point64()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint8_t Q&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structeosio_1_1fixed__point64.html">eosio::fixed_point64</a>&lt; Q &gt;::<a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#ga996e72f71b11a5bb8b3b7b6936b1516d">int64_t</a>&#160;</td>
          <td class="paramname"><em>v</em> = <code>0</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a616163b00e9c4ff8e237139bb96ad6b1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a616163b00e9c4ff8e237139bb96ad6b1">&#9670;&nbsp;</a></span>frac_part()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint8_t Q&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a> <a class="el" href="structeosio_1_1fixed__point64.html">eosio::fixed_point64</a>&lt; Q &gt;::frac_part </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Get the decimal part of the 64 bit fixed number </p><dl class="section return"><dt>Returns</dt><dd>Returns decimal part of the fixed number</dd></dl>
<p>Example: </p><div class="fragment"><div class="line">fixed64&lt;3&gt; a(1234.455667)</div><div class="line"><a class="code" href="namespacestd.html">std</a>::cout &lt;&lt; a.decimal_part(); <span class="comment">// Output: 455</span></div></div><!-- fragment --> 
</div>
</div>
<a id="a713dad1088c1c4a95ed446e055f0a523"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a713dad1088c1c4a95ed446e055f0a523">&#9670;&nbsp;</a></span>int_part()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint8_t Q&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga996e72f71b11a5bb8b3b7b6936b1516d">int64_t</a> <a class="el" href="structeosio_1_1fixed__point64.html">eosio::fixed_point64</a>&lt; Q &gt;::int_part </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Get the integer part of the 64 bit fixed number </p><dl class="section return"><dt>Returns</dt><dd>Returns integer part of the fixed number</dd></dl>
<p>Example: </p><div class="fragment"><div class="line">fixed_point64&lt;18&gt; a(1234.455667)</div><div class="line"><a class="code" href="namespacestd.html">std</a>::cout &lt;&lt; a.int_part(); <span class="comment">// Output: 1234</span></div></div><!-- fragment --> 
</div>
</div>
<a id="a91f5e8b0aad593b8f92d8ed9b8f287d0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a91f5e8b0aad593b8f92d8ed9b8f287d0">&#9670;&nbsp;</a></span>operator+()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint8_t Q&gt; </div>
<div class="memtemplate">
template&lt;uint8_t QR&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a>&lt; (Q&gt;QR)?Q:QR &gt; <a class="el" href="structeosio_1_1fixed__point64.html">eosio::fixed_point64</a>&lt; Q &gt;::operator+ </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a>&lt; QR &gt; &amp;&#160;</td>
          <td class="paramname"><em>r</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a9b0a83b256f3a7c2dac7a2ba838d8397"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9b0a83b256f3a7c2dac7a2ba838d8397">&#9670;&nbsp;</a></span>operator-()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint8_t Q&gt; </div>
<div class="memtemplate">
template&lt;uint8_t QR&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a>&lt; (Q&gt;QR)?Q:QR &gt; <a class="el" href="structeosio_1_1fixed__point64.html">eosio::fixed_point64</a>&lt; Q &gt;::operator- </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a>&lt; QR &gt; &amp;&#160;</td>
          <td class="paramname"><em>r</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a2c28bc89073dfa8c6f81ee2594a3272c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2c28bc89073dfa8c6f81ee2594a3272c">&#9670;&nbsp;</a></span>operator<()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint8_t Q&gt; </div>
<div class="memtemplate">
template&lt;uint8_t QR&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="structeosio_1_1fixed__point64.html">eosio::fixed_point64</a>&lt; Q &gt;::operator&lt; </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a>&lt; QR &gt; &amp;&#160;</td>
          <td class="paramname"><em>r</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a36ebd8f73c42839443039dbef6462ff4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a36ebd8f73c42839443039dbef6462ff4">&#9670;&nbsp;</a></span>operator=() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint8_t Q&gt; </div>
<div class="memtemplate">
template&lt;uint8_t QR&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a>&amp; <a class="el" href="structeosio_1_1fixed__point64.html">eosio::fixed_point64</a>&lt; Q &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a>&lt; QR &gt; &amp;&#160;</td>
          <td class="paramname"><em>r</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a4f8cc600e51217711153481052e0002c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4f8cc600e51217711153481052e0002c">&#9670;&nbsp;</a></span>operator=() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint8_t Q&gt; </div>
<div class="memtemplate">
template&lt;uint8_t QR&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a>&amp; <a class="el" href="structeosio_1_1fixed__point64.html">eosio::fixed_point64</a>&lt; Q &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a>&lt; QR &gt; &amp;&#160;</td>
          <td class="paramname"><em>r</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ad2fb0230d48ccc90795e278e1ef12df6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad2fb0230d48ccc90795e278e1ef12df6">&#9670;&nbsp;</a></span>operator==()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint8_t Q&gt; </div>
<div class="memtemplate">
template&lt;uint8_t QR&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="structeosio_1_1fixed__point64.html">eosio::fixed_point64</a>&lt; Q &gt;::operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a>&lt; QR &gt; &amp;&#160;</td>
          <td class="paramname"><em>r</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a63ee72acb0a3307d54283dba95dc623b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a63ee72acb0a3307d54283dba95dc623b">&#9670;&nbsp;</a></span>operator>()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint8_t Q&gt; </div>
<div class="memtemplate">
template&lt;uint8_t QR&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="structeosio_1_1fixed__point64.html">eosio::fixed_point64</a>&lt; Q &gt;::operator&gt; </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a>&lt; QR &gt; &amp;&#160;</td>
          <td class="paramname"><em>r</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="adf1b4e4d25279c532d9ac3ff56d9af21"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adf1b4e4d25279c532d9ac3ff56d9af21">&#9670;&nbsp;</a></span>val</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint8_t Q&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga996e72f71b11a5bb8b3b7b6936b1516d">int64_t</a> <a class="el" href="structeosio_1_1fixed__point64.html">eosio::fixed_point64</a>&lt; Q &gt;::val</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>contracts/eoslib/<a class="el" href="fixedpoint_8hpp_source.html">fixedpoint.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
